package progetto;

public class PermanImmuneValue {
	
	private static PermanImmuneValue singleObject;
	
	private double percentage;
	
	
	private PermanImmuneValue()  {
		
		percentage = -1;
	}
	
	
	public static PermanImmuneValue getIstance() {
		if(singleObject == null) {
			singleObject = new PermanImmuneValue();
		} 
		
		return singleObject;
	}
	
	public boolean initializePercent(double percentage) {
		if(this.percentage == -1) {
			this.percentage = percentage;
			return true;
		}
		return false;
	}

}
